package name.vaccari.matteo.tai.phonedirectory.controllers;

import name.vaccari.matteo.tai.phonedirectory.network.HttpProtocol;
import name.vaccari.matteo.tai.phonedirectory.network.TcpServer;
import name.vaccari.matteo.tai.phonedirectory.persistence.InMemoryPeopleRepository;

public class Main {

	public static void main(String[] args) {
		TcpServer server = new TcpServer(4444, new HttpProtocol(new PeopleServlet(
				new InMemoryPeopleRepository())));
		server.run();
	}
}
